<template>
  <view class="header">
    <text class="back" @click="back">‹ 返回门户</text>
    <text class="tit"><slot>{{ title }}</slot></text>
  </view>
</template>
<script setup>
import { defineProps } from 'vue'
defineProps({ title: String })
const back = () => uni.reLaunch({ url: '/pages/index' })
</script>
<style scoped>
.header{ height:88rpx; background:#007aff; color:#fff; display:flex; align-items:center; padding:0 24rpx; }
.back{ font-size:26rpx; }
.tit{ flex:1; text-align:center; font-size:32rpx; }
</style>